<template>
  <div>{{onFormat()}}</div>
</template>

<script>
export default {
  props: {
    datetime: { type: String, default: "1900-00-00 00:00:00" },
  },
  methods: {
    onFormat() {
      return this.datetime.replace("T", " ").replace(/\..*/, "");
    }
  }
};
</script>